package com.card.hwatt.core;

import java.text.SimpleDateFormat;

import javax.annotation.PostConstruct;

import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.map.SerializationConfig;

public class CustomObjectMapper extends ObjectMapper {

	@PostConstruct
	public void afterPropertiesSet() throws Exception {
		super.configure(SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS,
				false);
		SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		setDateFormat(sf);
	}

}